package com.jj.buy.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jj.buy.entities.User;
import com.jj.buy.service.Userservice;

@RestController
public class UserController {
@Autowired
private Userservice userservice;
@RequestMapping("/user/get/all")
public List<User> list(){
	return userservice.list();
}
}
